import turtle,random as r

alpha = turtle.Turtle()
turtle.setup(600,600)
color =["#FF00FF","#D8BFD8","#0000FF","#6495ED","#FFD700","#DAA520","#FF4500"]
turtle.bgcolor("white")
alpha.color(color[r.randint(0,6)])

def multi_angle_star(sides, steps):
    for i in range(sides * 2):
        alpha.forward(steps)
        alpha.color(color[r.randint(0, 6)])
        if i % 2 == 0:
            alpha.left(360 / sides)
        else:
            alpha.right(720 / sides)
for i in range(20):

    multi_angle_star(5, r.randint(8,30))
    alpha.penup()
    alpha.goto(r.randint(1,300),r.randint(1,300))
    alpha.right(r.randint(0,360))
    alpha.pencolor()
    alpha.pendown()
